widget: Don't set the allocation in size-allocate
authorTimm Bäder <mail@baedert.org>
Fri, 5 May 2017 10:46:19 +0000 (12:46 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:12 +0000 (21:27 -0400)
If widgets chain up in their size-allocate implementation, they pass the
content allocation and not the widget allocation which will cause the
wrong allocation to be set.

gtk/gtkwidget.c

index cb1048e2220ea9f47188f2779ed38943e216c843..64cbcf17a60b7ab085faaf14cfded805841c5dd0 100644 (file)
@@ -5860,8 +5860,6 @@ gtk_widget_real_size_allocate (GtkWidget     *widget,
 {
   GtkWidgetPrivate *priv = widget->priv;
 
-  gtk_widget_set_allocation (widget, allocation);
-
   if (_gtk_widget_get_realized (widget) &&
       _gtk_widget_get_has_window (widget))
      {